package com.itheima.domain.mongo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {

    private ObjectId id; //主键id
    private Long userId; //语音发送人id
    private String soundUrl;//语音url
    private Integer remaining; //语音次数
    private Long created; //创建时间
    private Integer pick;//是否被捡取

    private String sex;//性别
    private String avatarUrl;//语音背景图?
    private Integer like; //是否喜欢

}
